<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ include file="../common/include/header.jsp" %>

<%@ page import="java.util.*,util.*,board.*" %>

<div>
<table border="0" cellpadding="0" cellspacing="0" width="980px">
	<tr>
		<td style="vertical-align: top;width: 180px;background-color: #fdb73a;">
			
<!-- Left Menu Including -->
<%@ include file="../common/include/leftmenu.jsp" %>

		</td>
		
		<td style="text-align: center;width: 800px; vertical-align: top;">

<!-- 여기서부터 게시판 내용 -->
<div id="noticeMain" style="text-align: center;background-color: #ffffff;">
<html:form action="/noticeboard.do">

<%@include file="logo.jsp" %>

<div class="boardname">공지사항</div>
<table style="width: 700px; text-align: center;" id="nlist" border="0" cellpadding="0" cellspacing="0">
	<tr style="background: #bbbbbb;height: 20px;">
		<td style="width: 50px;background-image: url('<%=imagePath %>boardlist_topbg_01.jpg');" class="fbtd2"></td>
		<td style="width: 100px;background-image: url('<%=imagePath %>boardlist_topbg_02.jpg');" class="fbtd2"></td>
		<td style="background-image: url('<%=imagePath %>boardlist_topbg_03.jpg');" class="fbtd2"></td>
		<td style="width: 100px;background-image: url('<%=imagePath %>boardlist_topbg_04.jpg');" class="fbtd2"></td>
		<td style="width: 50px;background-image: url('<%=imagePath %>boardlist_topbg_05.jpg');" class="fbtd2"></td></tr>

	
<logic:iterate id="list" name="noticeForm" property="noticelist">
	<tr id="<bean:write name="list" property="nbno"/>" onmouseover="changeBGC(<bean:write name="list" property="nbno"/>)" onmouseout="returnBGC(<bean:write name="list" property="nbno"/>)">
	
		<td class="fbtd"><bean:write name="list" property="rownum"/></td>
		
		<td class="fbtd"><a href="javascript:;" onmousedown="popmenu1('<bean:write name="list" property="mid"/>');" >
		<bean:write name="list" property="mcnick"/></a></td>
		
		<td class="fbtd" style="text-align: left;"><a href="noticeboard.do?method=detailView&nbno=<bean:write name="list" property="nbno"/>">
		<bean:write name="list" property="nbtitle"/></a></td>

		<td class="fbtd"><bean:write name="list" property="nbsdate"/></td>
		
		<td class="fbtd"><bean:write name="list" property="nbcounter"/></td></tr>
		
</logic:iterate>
		<tr><td colspan="5">
			<jsp:include page="pager.jsp">
				<jsp:param name="url" value="noticeboard.do?method=getList"/>
			</jsp:include>
		</td></tr>
	<tr><td style="text-align: right;" colspan="5">

<logic:greaterThan value="6" name="user" property="userInfo.lvno">
	<html:link href="javascript:noticeForm.submit();"><img src="<%=imagePath %>icon_write.jpg"/></html:link>	
</logic:greaterThan>
	<a href="javascript:getBoard('noticeboard.do?method=getList&currentPage=<bean:write name="pager" property="currentPage"/>
	&cono=<bean:write name="noticeForm" property="cono"/>&fbname=','공지사항');"><img src="<%=imagePath %>icon_list.jpg"/>
	</a>
		</td></tr>
</table>
<input type="hidden" name="cono" value="<bean:write name="noticeForm" property="cono"/>"/>
<input type="hidden" name="method" value="getForm"/>
</html:form>
</div>
<script type="text/javascript">
<!--

	function getBoard(u,b){
		var url = u;
		url = url + escape(encodeURIComponent(b));
		location.href=url;
	}
-->
</script>
		</td>		
	</tr>
</table>
</div>

<%@ include file="../common/include/footer.jsp" %>